<div class="ciuusers">
  
  <?php $tokens=array( 0=> "", 1=>"Cursos actuales" )  ?>
  <?php  echo $this->element("breadcrumb", array('tokens'=>$tokens) ); ?>
  
<table class="zebra">
<thead>
<tr>
	<th>Id-Plan</th>
	<th>Id-Asignatura</th>
        <th>Cantidad <br> Cursos</th>
	<th>Acciones</th>
</tr>
</thead>
<?php
	foreach($listadvanced as $key => $val){
	?>
	<tr>
		<td><?php echo $val['Ciuplan']['id']."-".$val['Ciuplan']['name'] ; ?>&nbsp;</td>
		<td><?php echo $val['Ciusubject']['id']."-".$val['Ciusubject']['name']   ; ?>&nbsp;</td>
		<td><?php echo $val[0]['qty']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('controller' => 'ciucourses', 'action' => 'indexbysubject', $val['Ciusubject']['id'])); ?>
			<?php echo $this->Html->link(__('Adicionar', true), array('controller' => 'ciucourses', 'action' => 'createadvanced', $val['Ciusubject']['id'])); ?>
		</td>
	</tr>
<?php		
	}
?>
</table>
</div>